package JD_CAST_UPCAST;

public class Example {
    void setValue(Object a, Object value) {
        if (a instanceof Map) {
            HashMap b = (HashMap) a;
            b.put(value, "");
        } else if (a instanceof List) {
            List b = (List) a;
            b.add(value);
        }
    }
}
